<template>
  <div @click="fn">
    <a href="https://www.baidu.com" @click.stop.prevent="fnn">1111</a>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    fn() {
      console.log(1);
    },
    fnn() {
      console.log(2);
    },
  },
};
</script>

<style>
</style>